package com.woniuxy.yogaapp.handler;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.woniuxy.yogaapp.pojo.Recruit;
import com.woniuxy.yogaapp.service.RecruitService;

import lombok.Data;

@Data
@Controller
@RequestMapping("/recruit")
@Scope("prototype")
public class RecruitHandler {
	@Resource
	private RecruitService recruitService ;
	//查询所有
	@RequestMapping("/all")
	@ResponseBody
	public List<Recruit> recruitAll(){
		return recruitService.findAllRecruit();
		
	}
	
}
